package cn.hp.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.hp.dao.RoleDao;
import cn.hp.domain.Role;

@Service
@Transactional
public class RoleServiceImpl implements RoleService{
	@Autowired
	private RoleDao roleDao;
	
	
	//查询所有角色信息
	@Override
	public List<Role> findAll() {
		return roleDao.findAll();
	}

	//添加
	@Override
	public void save(Role role) {
		roleDao.save(role);
		
	}
	
}
